from django.db import models
from apps.common.base.models import BaseModel
from apps.system.user.models import User

class Kuai100(BaseModel):

    status = (
        ('wait_use', "待使用"),
        ('has_use', "已使用"),
        ('due', "已过期"),
    )
        
    user = models.ForeignKey(User, related_name='user_kuai100', verbose_name='用户', on_delete=models.SET_NULL, null=True, blank=True, db_constraint=False)
    orderId = models.CharField('订单ID', max_length=100, blank=True)
    addrinfo = models.CharField('收货地址', max_length=100, blank=True)
    content = models.TextField('物流信息', max_length=20000, blank=True)
    expressageCompany = models.CharField('物流公司名称', max_length=100, blank=True)
    expressageNum = models.CharField('物流公司单号', max_length=100, blank=True)
    state = models.CharField("状态", max_length=200, default='')
    ischeck = models.CharField("是否签收", max_length=200, default='')

    class Meta:
        verbose_name = 'Kuai100'
        verbose_name_plural = verbose_name
